/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-08-02     CICFE       the first version
 */
#ifndef APPLICATIONS_DEVICE_LED_H_
#define APPLICATIONS_DEVICE_LED_H_


#define LED1           ((uint16_t)0x0100U)
#define LED2           ((uint16_t)0x0200U)
#define LED3           ((uint16_t)0x0400U)
#define LED4           ((uint16_t)0x0800U)


void Led_Thread(void);
void Led_Init(void);
void Led_On(void);
void Led_Off(void);
void Led_Toggle(uint32_t _pin);

void HC574_SetPin(uint32_t _pin, uint8_t _value);
uint8_t HC574_GetPin(uint32_t _pin);
void HC574_TogglePin(uint32_t _pin);

#endif /* APPLICATIONS_DEVICE_LED_H_ */
